﻿<style>
    .modal-lg { width: 70%; }
</style>

<div class="modal-header">
    <button type="button" class="close" ng-disabled="loadingState" ng-click="close();">
        <span aria-hidden="true">&times;</span>
    </button>
    <h3 class="modal-title">考试计划列表</h3>
</div>

<div class="modal-body">
    <div style="max-height: 280px; overflow-y: auto;">
        <table class="table responsive table-hover">
            <thead>
                <tr class="active">
                    <th>考试批次名称</th>
                    <th class="text-center">科目数</th>
                    <th class="text-center">加载状态</th>
                    <th class="text-center">操作</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="item in list">
                    <td title="{{item.batchName}}">{{item.batchName}}</td>

                    <td class="text-center">{{item.successCount}}/{{item.allSubjectCount}}</span></td>

                    <td class="text-center" ng-switch on="item.sysState">
                        <span ng-switch-when="未下载" ng-click="getPlanProgress(item)">未加载计划</span>
                        <span ng-switch-when="下载中" ng-click="loadSubject(item)">加载中</span><!--下载完成未生成试卷-->
                        <span ng-switch-when="下载完成且已生成试卷" ng-click="loadSubject(item)">已加载</span>
                    </td>

                    <td style="cursor:pointer;color:#16BEB1;" class="text-center" ng-switch on="item.sysState">
                        <span ng-switch-when="未下载" ng-click="getPlanProgress(item)">加载计划</span>
                        <span ng-switch-when="下载中" ng-click="loadSubject(item)">加载科目</span><!--下载完成未生成试卷-->
                        <span ng-switch-when="下载完成且已生成试卷" ng-click="loadSubject(item)">查看科目</span>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>

<div class="modal-footer">
    <button class="btn btn-gray pull-right" ng-click="close();" ng-disabled="loadingState">
        <i class="fa fa-close"></i>
        关闭
    </button>
</div>